package fanalg;

/**
 * Exception class for informing about parser errors
 * @author Tomasz Werszko
 *
 */
public class ParserException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = -707919938302775133L;
	
	public int line = 0;
	public String message = "";
	
	public ParserException(int line){
		this.line = line;
	}
	
	public ParserException(String msg){
		this(-1);
		this.message = msg;
	}
	
	public ParserException(int line, String msg){
		this(line);
		this.message = msg;
	}

}
